package org.ims.inv.service.project;

import java.util.List;

import org.ims.inv.model.project.ModelProjectProcess;

import cn.trymore.core.exception.ServiceException;
import cn.trymore.core.service.ServiceGeneric;

/**
 * Service: 项目流程
 * 
 * @author Jeccy.Zhao
 *
 */
public interface ServiceProjectProcess
extends ServiceGeneric<ModelProjectProcess>
{
	/**
	 * Obtains list of processes by the specified node key
	 * 
	 * @param nodeKey
	 * @return
	 * @throws ServiceException
	 */
	List<ModelProjectProcess> getProcessByNodeKey (String nodeKey) throws ServiceException;
	
	/**
	 * Obtains list of processes by the specified depended flow id
	 * 
	 * @param dependFlowId
	 * @return
	 * @throws ServiceException
	 */
	List<ModelProjectProcess> getProcessByDependedFlow (String dependFlowId) throws ServiceException;
}
